﻿using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {//二维数组的声明
        string[,] strs = new string[2,2] { { "余振:", "帅哥" }, { "yuzhen:", "聪明" }};
        string str = "";
        for (int i = 0; i < 2; i++)//循环输出二维数组中的每个元素
        {
            for (int j = 0; j < 2; j++)
            {
                str += strs[i, j];
            }
            str += "<br>";
        }
        Response.Write(str);
        System.Array.Clear(strs,0,2);//数组的清除，置null；数组名，索引，长度
    }
}
